import StatusEnum from "@/enums/StatusEnum";
import BoolEnum from "@/enums/BoolEnum";

/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
  label: "序号",
  prop: "id",
  isTable: true
}, {
  label: "模版名称",
  prop: "name",
  isTable: true,
}, {
  label: "医生",
  prop: "doctor_name",
  isTable: true,
}, {
  label: "最近修改时间",
  prop: "updated_at",
  isTable: true,
}, {
  label: "状态",
  prop: "status",
  isSearch: true,
  isTable: true,
  formType: "radio",
  defaultValue: 0,
  enum: StatusEnum
}, {
  label: "模版名称/归属医生",
  prop: "name",
  isSearch: true,
  formType: "input"
}]
const tableConfig = {
  editBtnShow: true,
  editBtnPath: "/baseInfo/recipeOrder/template_manage_edit",
  buttons: ["edit", "status", "delete"]
}
const pageConfig= {
  small: false,
  disabled: false,
  background: false,
}

export { tableColumn, tableConfig, pageConfig };
